'''
Created on Mar 18, 2016

@author: JimmyMo
'''
from boot import perfsynboot
import schedule
import time
class ScheduleBoot(perfsynboot.Boot):
    def __init__(self, start_method, interval):
        super().__init__(start_method)
        self.interval = interval
        pass
    def boot(self):
        schedule.every(self.interval).seconds.do(self.start_method)
        while 1:
            schedule.run_pending()
            time.sleep(1)
        pass
